package edu.winona.csclub.testing.core;

public class Variable {
	String id;
	Range[] range;

	public Variable(String id, Range[] range) {
		super();
		this.range = range;
		this.id = id;
	}
	
	/**
	 * returns a range of this variable, this will be an array of Ranges
	 * with length of at least 1
	 * @return
	 */
	public Range[] getRange() {
		return range;
	}

	public void setRange(Range[] range) {
		this.range = range;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String toString(){
		String ranges="";
		for(Range r : range){
			ranges+= "  "+r;
		}
		return "["+id+ranges+"]";
	}
	}
